import request from '@/utils/request.js'

// 查询中医问题列表
export function listNodeAndEdge(query) {
    return request({
        url: '/medical/releation/list',
        method: 'get',
        params: query
    })
}

// 新建关系
export function makeReleation(data) {
    return request({
        url: '/medical/releation/makeReleation',
        method: 'post',
        data: data
    })
}

// 删除关系
export function delReleation(data) {
    return request({
        url: '/medical/releation/delReleation',
        method: 'post',
        data: data
    })
}

export function queryNodeAndReleation(query) {
    return request({
        url: '/medical/releation/queryNodeAndReleation',
        method: 'get',
        params: query
    })
}